import android.app.ListActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import java.util.ArrayList;
import org.me.stepapp.R;
/*
public class ListFriends extends ListActivity
{
    // Variable declarations
    Button submit;
    TextView myTextView;
    ArrayAdapter <String> adapter;
    ArrayList<String> friends = new ArrayList<String>();


    @Override
    public void onCreate(Bundle icicle)
    {
       super.onCreate(icicle);
       // Inflate content
       setContentView(R.layout.list_location);

       // Add EditText and Buttons
      // myEditText = (EditText)findViewById(R.id.myEditText);
//       submit = (Button)findViewById(R.id.submit);
  //     exit = (Button)findViewById(R.id.exit);

       // submit Button Listener
       submit.setOnClickListener(new View.OnClickListener() {
                    public void onClick(View v)
                    {
                        addItem();
                    }
                });

       // exit Button Listener
    //   exit.setOnClickListener(new View.OnClickListener() {
                    public void onClick(View v)
                    {
                        System.exit(0);
                    }
       //         });

       // Intial array list items
      // items.add("Complete mobile computing homework");

       // Instance of ArrayAdapter
       //adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, items);
       //
       //setListAdapter(adapter);
    //}

    // Method to create OptionsMenu
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
      boolean result = super.onCreateOptionsMenu(menu);
      // Add menu items
      menu.add(0, ADD_ITEM_ID, Menu.NONE, R.string.add_item );
      return result;
    }

    // Method to define action when Option menu item selected
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch ( item.getItemId() ) {
            // Action for add_item
            case ADD_ITEM_ID:
		addItem();
                break;
        }
        return super.onOptionsItemSelected(item);
    }

        // Method to add items to the Todo list
	private void addItem() {
            // Get text from EditText
            items.add(0, myEditText.getText().toString());
            // Update ListView
            adapter.notifyDataSetChanged();
            // Clear EditText
            myEditText.setText("");
    }
}*/


